import styled from "styled-components"

export const CenterWrapper = styled.div`
  width: auto;
  .search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 300px;
    height: 48px;
    box-sizing: border-box;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 24px;
    cursor: pointer;
    ${(props) => props.theme.mixin.boxShadow};
    box-shadow: 0px 1px #ddd;

    .text {
      padding: 0 16px;
      color: #222;
      font-weight: 600;
    }

    .icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      color: #fff;
      background-color: ${(props) => props.theme.color.primaryColor};
    }
  }
  .search-info {
    .titleTab {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 150px;
      height: 48px;

      > span {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 77px;
        height: 38px;
        font-size: 14px;
        text-shadow: 0px 2px 2px #ddd;
        margin: 5px;
        cursor: pointer;
        color: ${(props) =>
          props.theme.isAlpha ? "rgba(255,255,255,1)" : "#222"};
      }
      .active {
        border-bottom: 2px solid
          ${(props) => (props.theme.isAlpha ? "rgba(255,255,255,1)" : "#222")};
      }
    }
  }
`
